/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 adv_object_map_info.cpp

	$Header: /heroes4/adv_object_map_info.h $

	$NoKeywords: $

 ************************************************************************/

// kill the 255+ character identifier warning.  Templates tend to exceed that easily.
#include "precompiled.h"
#pragma warning( disable: 4786 )

#include "adv_object_map_info.h"

#include "adv_map_point.h"
#include "adventure_map.h"
#include "player.h"
#include "town_image_level.h"

t_adventure_map* t_adv_object_map_info::get_map() const
{
	return 0;
}

t_adventure_frame* t_adv_object_map_info::get_adventure_frame() const
{
	return 0;
}

t_player* t_adv_object_map_info::get_owner() const
{
	t_adventure_map* map = get_map();

	if (map == 0)
		return 0;

	int owner_number = get_owner_number();

	if (owner_number < 0)
		return 0;

	return &map->get_player( owner_number );
}

bool t_adv_object_map_info::is_human() const
{
	t_player* owner = get_owner();

	if (owner == 0)
		return false;
	if (owner->is_computer())
		return false;
	return true;
}

int t_adv_object_map_info::get_owner_number() const
{
	return -1;
}

t_adv_map_point t_adv_object_map_info::get_position() const
{
	return t_adv_map_point();
}

bool t_adv_object_map_info::get_virtual_position(t_adv_map_point& position) const
{
	position = get_position();
	return true;
}

t_army* t_adv_object_map_info::get_army()
{
	return NULL;
}

t_army const* t_adv_object_map_info::get_army() const
{
	return NULL;
}

t_ownable_garrisonable_adv_object* t_adv_object_map_info::get_ownable_garrison()
{
	return NULL;
}

t_town* t_adv_object_map_info::get_town()
{
	return NULL;
}

t_adventure_object*	t_adv_object_map_info::get_adventure_object()
{
	return NULL;
}

t_creature_array* t_adv_object_map_info::get_creature_array()
{
	return NULL;
}

t_adventure_ai const* t_adv_object_map_info::get_ai() const
{
	return NULL;
}

bool t_adv_object_map_info::is_boat() const
{
	return false;
}

bool t_adv_object_map_info::is_actor() const
{
	return false;
}

t_town_image_level t_adv_object_map_info::get_castle_level() const
{
	return k_town_image_village;
}
